case_number = 1
while True:
    try:
        x = int(input())
        if x == 0:
            break
        print(f"Case {case_number}: {x}")
        case_number += 1
    except:
        break